import text from './text.vue'
import checkbox from './checkbox.vue'
import radio from './radio.vue'
import number from './number.vue'
import select from './select.vue'
import selectv2 from './selectv2.vue'
import treeselect from './treeselect.vue'
import cascader from './cascader.vue'
import timepicker from './timepicker.vue'
import timeselect from './timeselect.vue'
import color from './color.vue'
import rate from './rate.vue'
import slider from './slider.vue'
import Switch from './switch.vue'
import date from './date.vue'
import transfer from './transfer.vue'
import map from './map.vue'
import upload from './upload.vue'

export default {
  install(app) {
    app.component('component-text', text) // 输入框
    app.component('component-textarea', text) // 文本域
    app.component('component-checkbox', checkbox) // 复选框
    app.component('component-radio', radio) // 单选按钮
    app.component('component-number', number) // 数值输入框
    app.component('component-select', select) // 下拉选择
    app.component('component-selectv2', selectv2) // 虚拟下拉选择
    app.component('component-treeselect', treeselect) // 树形选择
    app.component('component-cascader', cascader) // 级联选择
    app.component('component-timepicker', timepicker) // 时间选择器
    app.component('component-timeselect', timeselect) // 时间选择
    app.component('component-datepicker', date) // 日期选择器
    app.component('component-datetimepicker', date) // 日期时间选择器
    app.component('component-color', color) // 颜色选择器
    app.component('component-slider', slider) // 滑块
    app.component('component-switch', Switch) // 开关
    app.component('component-rate', rate) // 评分
    app.component('component-transfer', transfer) // 穿梭框
    app.component('component-map', map) // 地图
    app.component('component-upload', upload) // 上传
  }
}
